package yz.cp.back.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import yz.cp.back.common.constant.CommonConstant;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AuditEntity  implements Serializable {

    protected static final long serialVersionUID = 1L;
    @TableId
    private String id;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    private Integer delFlag = CommonConstant.STATUS_NORMAL;
}
